const mongoose = require('mongoose');

// mongoose.connect('mongodb://localhost:27017/doctor')

const userSchema = mongoose.Schema({
    username: String,
    password: String,
    age: String,
    sex: String,
    address: String,
    realName: String,
    phone: String,
    status: Boolean,
    mailbox: String,
    birthday: Date,
    section: String,
    
    use: String, 
    symptom: String, 
    useage: String, 
    usephone: String, 
    usesex: String, 
    usesection: String, 
    usetime: Date, 
    admin: String, 
    useadress: String
}
)


// 管理员
const userModel = mongoose.model('yang', userSchema, 'doctor') 

// 会员
module.exports = userModel